import request from '@/utils/request'

// 查询部门排班记录列表
export function listGroupscheduler(query) {
  return request({
    url: '/system/groupscheduler/list',
    method: 'get',
    params: query
  })
}

// 查询部门排班记录详细
export function getGroupscheduler(id) {
  return request({
    url: '/system/groupscheduler/' + id,
    method: 'get'
  })
}

// 新增部门排班记录
export function addGroupscheduler(data) {
  return request({
    url: '/system/groupscheduler',
    method: 'post',
    data: data
  })
}

// 修改部门排班记录
export function updateGroupscheduler(data) {
  return request({
    url: '/system/groupscheduler',
    method: 'put',
    data: data
  })
}

// 删除部门排班记录
export function delGroupscheduler(id) {
  return request({
    url: '/system/groupscheduler/' + id,
    method: 'delete'
  })
}
